//package org.karelun.rabbit.rcp.utils;
//
//import org.eclipse.draw2d.geometry.Dimension;
//import org.eclipse.draw2d.geometry.Point;
//import org.eclipse.draw2d.geometry.Rectangle;
//import org.karelun.rabbit.graph.Shape;
//
//public class ModelUtils {
//	
//	public static Point getShapeLocation(Shape shape){
//		return new Point(shape.getX(), shape.getY());
//	}
//	
//	public static void setShapeLocation(Shape shape,Point location){
//		shape.setX(location.x);
//		shape.setY(location.y);
//	}
//	
//	public static Dimension getShapeSize(Shape shape){
//		return new Dimension(shape.getWidth(), shape.getHeight());
//	}
//	
//	public static void setShapeSize(Shape shape,Dimension size){
//		shape.setWidth(size.width);
//		shape.setHeight(size.height);
//	}
//	
//	public static Rectangle getShapeBounds(Shape shape){
//		return new Rectangle(getShapeLocation(shape), getShapeSize(shape));
//	}
//	
//	public static void setShapeBounds(Shape shape,Rectangle bounds){
//		setShapeLocation(shape, bounds.getLocation());
//		setShapeSize(shape, bounds.getSize());
//	}
//}
